@echo off
REM   设置当前前端口为utf-8 的编码格式
chcp 65001

    echo 'Delete my VIM profile, historical data file! '

    :: 切换到用户目录
    cd "%userprofile%"

    :: 切换回原来的盘符
    %nowBatDird%
    cd  %nowBatDir%

    :: 删除备份文件、配置文件、用户数据文件
    REM  del   /P   %userprofile%\_vimrc_bak*
    REM  del   /P   %userprofile%\.vim-bookmarks
    REM  del   /P   %userprofile%\_viminfo
    REM  del   /P   %userprofile%\.NERDTreeBookmarks
    REM  rmdir /S/Q %userprofile%\.vim
    REM  rmdir /S/Q %userprofile%\.undodir
    REM  rmdir /S/Q %userprofile%\vimfiles
    REM  del   /p   %userprofile%\_vimrc

    :: 安静删除 不用提示
    del   /Q   %userprofile%\_vimrc_bak*
    del   /Q   %userprofile%\.vim-bookmarks
    del   /Q   %userprofile%\_viminfo
    del   /Q   %userprofile%\.NERDTreeBookmarks
    rmdir /S/Q %userprofile%\.undodir
    rmdir /S/Q %userprofile%\.vim
    rmdir /S/Q %userprofile%\vimfiles
    del   /Q   %userprofile%\_vimrc

    echo Over!
:: 暂停
pause
